/*
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2022-03-21 10:15:48
 * @LastEditors: 小白
 * @LastEditTime: 2025-08-06 17:20:11
 * @FilePath: \tmsadmin\src\api\request.ts
 */

import HTTP_URI from './base_url'
import { Fecth,FecthExport,FecthUpload } from '@/libs/axios'
export const REQUEST: any = {
  POST: function (businessType: any, datas: any) {
    if (!HTTP_URI[businessType]) return
    const result = Fecth(HTTP_URI[businessType], datas)
    return result
  },
  POSTS: function (businessType: any, datas: any) {
    if (!HTTP_URI[businessType]) return
    const result = FecthExport(HTTP_URI[businessType], datas)
    return result
  },
  UPLOAD:function(businessType:any,datas:any){
    if (!HTTP_URI[businessType]) return
    const result = FecthUpload(HTTP_URI[businessType], datas)
    return result
  }
}
